#pragma once
#include <obs.hpp>
#include <QWidget>
#include <QLabel>
#include <QPushButton>

class UserCaption : public QWidget 
{
	Q_OBJECT
public:
	UserCaption(QWidget *parent = 0);
	virtual ~UserCaption();

public:
	void setIcon(const QPixmap& pixmap);
	void setTitle(const QString& text);
	void setHeight(int h);

private:
	void init();
	void bind();

private:
	QLabel* userIcon;
	QLabel* userTitle;
	QPushButton* userClose;
	int height{30};

signals:
	void closeSignal();

public slots :
	

};

